import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'

// 在import Vue from 'vue'下面引入
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

//  引入 usertab.Vue
import userTab from "pages/UserTabBar/userTab.vue"
Vue.component('userTab',userTab)

// 引入自定义顶部导航栏 
import topNavbar from "untils/topNavbar.vue"
Vue.component('topNavbar',topNavbar)

//  引入 封装好的 request 
import request from '@/common/request.js'
Vue.prototype.$Z = request
  
// 引入 PDF查看
import PDFView from '@/common/PDFView.js'
Vue.prototype.PDFView = PDFView



Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif